import request from '@/plugins/axios/request';
const baseURL = process.env.VUE_APP_BASE_API

// 态势列表
export function getConfigChart(data) {
  return request({
    url: `${baseURL}/tech-report-config/getConfig`,
    method: "get",
    params: data,
  })
}
// 编辑态势
export function updateConfig(data) {
  return request({
    url: `${baseURL}/tech-report-config/updateConfig`,
    method: "post",
    data: data,
  })
}

// 获取配置项
export function getCurrentConfig(data) {
  return request({
    url: `${baseURL}/tech-report-config/getCurrentConfig`,
    method: "get",
    params: data,
  });
}
// 保存配置
export function updateCurrentConfig(data) {
  return request({
    url: `${baseURL}/tech-report-config/updateCurrentConfig`,
    method: "post",
    data: data,
  })
}

// 本月新增统计
export function getMonthStatistics(data) {
  return request({
    url: `${baseURL}/tech-statistics/month/statistics`,
    method: "get",
    params: data,
  });
}
// 各阶段项目情况
export function getStageStatistics(data) {
  return request({
    url: `${baseURL}/tech-statistics/stage/statistics`,
    method: "get",
    params: data,
  });
}
// 各类项目统计
export function getProjectType(data) {
  return request({
    url: `${baseURL}/tech-statistics/type/statistics`,
    method: "get",
    params: data,
  });
}
// 整体情况统计
export function getyearStatistics(data) {
  return request({
    url: `${baseURL}/tech-statistics/year/statistics`,
    method: "get",
    params: data,
  });
}
// 领域排行
export function getExpertiseArea(data) {
  return request({
    url: `${baseURL}/tech-statistics/expertiseArea/statistics`,
    method: "get",
    params: data,
  });
}
// 各类成果情况
export function getAchievement(data) {
  return request({
    url: `${baseURL}/tech-statistics/achievement/statistics`,
    method: "get",
    params: data,
  });
}
// 各经费支出情况
export function getFundOut(data) {
  return request({
    url: `${baseURL}/tech-statistics/fund/out/statistics`,
    method: "get",
    params: data,
  });
}
// 采购合同情况
export function getContract(data) {
  return request({
    url: `${baseURL}/tech-statistics/contract/statistics`,
    method: "get",
    params: data,
  });
}
// 科研指南领域项目情况
export function getGuideProject(data) {
  return request({
    url: `${baseURL}/tech-statistics/guide/project/statistics`,
    method: "get",
    params: data,
  });
}
// 成果转化应用
export function getAchievementConversion(data) {
  return request({
    url: `${baseURL}/tech-statistics/achievement/conversion/condition/statistics`,
    method: "get",
    params: data,
  });
}
// 年度项目进展情况
export function getFinishStatistics(data) {
  return request({
    url: `${baseURL}/tech-statistics/project/finish/condition/statistics`,
    method: "get",
    params: data,
  });
}
// 风险提示
export function getWaringStatistics(data) {
  return request({
    url: `${baseURL}/tech-statistics/risk/waring/statistics`,
    method: "get",
    params: data,
  });
}